package dem3;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-04-06
 * Time: 22:16
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(3);
        list.addLast(4);
        list.addLast(3);
        list.addLast(3);
        list.addLast(5);
        list.addLast(3);
        list.addLast(6);
        list.addLast(3);
        list.addLast(3);
        list.add(3,9);
        //list.removeFirst();
        //list.removeLast();
        list.remove(3);
        //list.remove(6);
        //list.remove(4);
        //list.removeAll(3);
        System.out.println(list.getSize());
        //System.out.println(list.contains(4));
        //System.out.println(list.getSize());
        list.show();
        list.clear();
        list.show();
    }
}
